import { createApp } from 'vue'
import App from './App.vue'
import router from './router/router'
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
// 导入公共样式
import 'normalize.css'
//引入样式初始化
import './assets/styles/common.css'
import xtxUi from './components/library/index'
const app = createApp(App)
// 挂载路由
app.use(router)
// 挂载Pinia
const pinia = createPinia()
// 让pinia里的数据持久化
pinia.use(piniaPluginPersist)
app.use(pinia)
app.use(xtxUi)
app.mount('#app')